package com.cz.video.website.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cz.video.website.domain.WebsiteMediaCategory;
import com.cz.video.website.domain.vo.WebsiteMediaCategoryVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 电影分类表 Mapper 接口
 * </p>
 *
 * @author 洪圆胜
 * @since 2023-10-15
 */
public interface WebsiteMediaCategoryMapper extends BaseMapper<WebsiteMediaCategory> {

    /**
     * 查询电影分类分页
     * @param websiteMediaCategoryWrapper
     * @param pageQuery
     * @return
     */
    Page<WebsiteMediaCategoryVo> selectPageList(@Param(Constants.WRAPPER) Wrapper<WebsiteMediaCategory> websiteMediaCategoryWrapper,
                                        @Param("page") Page<WebsiteMediaCategoryVo> pageQuery);

    WebsiteMediaCategoryVo selectDetailInfo(Long id);
}
